package com.appwoo.txtws.component;

import com.appwoo.txtws.bean.TrafficBean;
import java.util.ArrayList;

public class CompareApp
{
  public ArrayList<TrafficBean> AequalsB(ArrayList<TrafficBean> paramArrayList1, ArrayList<TrafficBean> paramArrayList2)
  {
    ArrayList localArrayList = new ArrayList();
    int i = 0;
    if (i >= paramArrayList1.size())
    {
      Logger.i("app", "tempList'size is " + localArrayList.size());
      return localArrayList;
    }
    TrafficBean localTrafficBean = (TrafficBean)paramArrayList1.get(i);
    for (int j = 0; ; j++)
    {
      if (j >= paramArrayList2.size())
      {
        i++;
        break;
      }
      if (((TrafficBean)paramArrayList2.get(j)).getPackageName().equals(localTrafficBean.getPackageName()))
        localArrayList.add((TrafficBean)paramArrayList2.get(j));
    }
  }

  public ArrayList<TrafficBean> AtoB(ArrayList<TrafficBean> paramArrayList1, ArrayList<TrafficBean> paramArrayList2)
  {
    ArrayList localArrayList = new ArrayList();
    int i = 0;
    if (i >= paramArrayList1.size())
      return localArrayList;
    TrafficBean localTrafficBean = (TrafficBean)paramArrayList1.get(i);
    label113: for (int j = 0; ; j++)
    {
      int k = paramArrayList2.size();
      int m = 0;
      if (j >= k);
      while (true)
      {
        if (m == 0)
        {
          localTrafficBean.setCloseTime(GetDateTime.getDateTime());
          localTrafficBean.setFlag(0);
          localArrayList.add(localTrafficBean);
        }
        i++;
        break;
        if (!((TrafficBean)paramArrayList2.get(j)).getPackageName().equals(localTrafficBean.getPackageName()))
          break label113;
        m = 1;
      }
    }
  }

  public ArrayList<TrafficBean> BtoA(ArrayList<TrafficBean> paramArrayList1, ArrayList<TrafficBean> paramArrayList2)
  {
    ArrayList localArrayList = new ArrayList();
    int i = 0;
    if (i >= paramArrayList1.size())
      return localArrayList;
    TrafficBean localTrafficBean = (TrafficBean)paramArrayList1.get(i);
    label119: for (int j = 0; ; j++)
    {
      int k = paramArrayList2.size();
      int m = 0;
      if (j >= k);
      while (true)
      {
        if (m == 0)
        {
          localTrafficBean.setOpenTime(GetDateTime.getDateTime());
          localTrafficBean.setUseTime(0);
          localTrafficBean.setFlag(1);
          localArrayList.add(localTrafficBean);
        }
        i++;
        break;
        if (!((TrafficBean)paramArrayList2.get(j)).getPackageName().equals(localTrafficBean.getPackageName()))
          break label119;
        m = 1;
      }
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.component.CompareApp
 * JD-Core Version:    0.6.2
 */